//
//  CommonTools.swift
//  weiboZY
//
//  Created by 赵勇 on 16/5/13.
//  Copyright © 2016年 赵勇. All rights reserved.
//

import UIKit

// 切换根视图控制器的通知名

let SwitchRootVCNotification = "SwitchRootVCNotification"
// 点击删除表情按钮发送的通知
let DidselectDelectEmoticanNotification = "DidselectDelectEmoticanNotification"

// 表情按钮的发布通知
let didSelectEmoticonBtnNotification = "didSelectEmoticonBtnNotification"

// RGB颜色的创建
func RGB(red: CGFloat, green: CGFloat, blue: CGFloat) -> UIColor {
    return UIColor(red: red, green: green, blue: blue, alpha: 1)
}

// 产生一个随机颜色
func RandomColor() -> UIColor {
    let red = random() % 256
    let green = random() % 256
    let blue = random() % 256
   
   return RGB(CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255)
    
}

// 屏幕宽度
let ScreenWidth = UIScreen.mainScreen().bounds.size.width
// 屏幕高度
let ScreenHeight = UIScreen.mainScreen().bounds.size.height







